home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
CRS
/
crs55.d81
/
cpow1351.sda
/
MOUSE.DOCS
next >
Wrap
Text File
|
2009-10-10
|
1KB
|
35 lines
****** ╔╥╤ - ═╧╒╙┼ - 1351 ******
╘HIS IS ADAPTED FROM THE ROUTINE ON THE ├OMMODORE 1351 ═OUSE ╒TILITY ─ISK,
BY ═IKE ┬YRON. ╘HIS ROUTINE GETS THE ╪ & ┘ CO-ORDINATES FROM THE MOUSE, AND
STORES THEM IN THE "╪├╥─" AND "┘├╥─", WHICH CAN BE DEFINED AS:
"EXTERN UNSIGNED INT" TYPE OBJECTS IN ╨OWER ├.
╘O USE IT, CALL "MOUSEON()" FROM ├. ╘O TURN IT OFF, CALL "MOUSEOFF()".
╫HILE IN USE, THE "╪CRD" & "┘CRD" CONTAIN THE ╪ & ┘ VALUES OF THE ═OUSE IN
THE RANGE OF 320*200 FORMAT. ╘HE MOUSE WILL STAY IN THE RANGE OF THE VIEWING
AREA MUCH LIKE A SPRITE (SAME VALUES). ┴LSO IF YOU WANT TO MONITOR EITHER OF
THE MOUSE BUTTONS, JUST READ "╠┬╘╬" & "╥┬╘╬" WHERE 1=╧╬ AND 0=╧╞╞.
╔F YOU WANT TO UKTUE2 I WHICH CAN BE DEFINED AS "EXTERN UNSIGNED INT" TYPE
OBJECTS IN ╨OWER ├.
┼XAMPLE OF "MOUSE.H":
#DEFINE ╧╬ 1
#DEFINE ╧╞╞ 0
EXTERN UNSIGNED INT XCRD;
EXTERN UNSIGNED INT YCRD;
EXTERN UNSIGNED I┬╘╬", WHICH CAN BE DEFINED AS "EXTERN UNSIGNED INT" TYPE
OBJECTS IN ╨OWER ├.
┼XAMPLE OF "MOUSE.H":
#DEFINE ╧╬ 1
#DEFINE ╧╞╞ 0
EXTERN UNSIGNED INT XCRD;
EXTERN UNSIGNED INT YCRD;
EXTERN UNSIGNED IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII